public class Main1076 {
    public static void main(String[] args) {
        int a=100;//腿
        int b=100;//头
        int n=2;
        int gj=2;
        int t=4;
        int n1=0;
        int gj1=0;
        for (int i=100;i>1;i--){
            n1=a-i*n;
            System.out.println(i);
            for (int j=100-n1;j>1;j--){
               gj1=n1-j*2;
                System.out.println(j);
                if (i*9+j+gj1==b){
                    System.out.println(i);
                    System.out.println(j);
                    System.out.println(gj1);

                }
            }
        }
    }
}
